import '@/assets/js/iconfont.js'

import SvgIcon from '@/components/common/SvgIcon.vue'
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

import router from './router'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus' //全局引入
import 'element-plus/dist/index.css'

import { setupStorage } from './stores/local_storage'
import { useUserStore } from './stores/user'

const pinia = createPinia()


const app = createApp(App)



app.use(router)
app.use(pinia)
app.use(ElementPlus)
app.component('svg-icon', SvgIcon)

setupStorage()
const userStore = useUserStore()
userStore.loadStorage()
userStore.userMemberShip()


app.mount('#app')
